<?php

namespace App\Http\Resources\Api\Admin;

use Illuminate\Http\Resources\Json\JsonResource;

class AdminPowerRoleHasNameResource extends JsonResource
{
    public function toArray($request)
    {
        return [
            'role_id'=>$this->role_id,
            'power_id' => $this->power_id,
            'power_name' => $this->power->power_name
        ];
    }
}
